package com.chb.builder;

/**
 * @author chihb
 * @create-time 2024/10/23 9:16
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Gallop gallop = new Gallop();
        Director director = new Director(gallop);
        Car gallopCar = director.construct();
        System.out.println(gallopCar);
        BMW bmw = new BMW();
        Director director2 = new Director(bmw);
        Car bmwCar = director2.construct();
        System.out.println(bmwCar);
    }
}
